package com.ms.education.course.service;

import com.ms.education.course.entity.ClassUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ms.education.course.entity.Classroom;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ms
 * @since 2023-02-24
 */
public interface ClassUserService extends IService<ClassUser> {

    //查询班级学员id
    List<Integer> getClassUserIds(Integer classId);

    //删除班级学员
    void deleteClassUser(List<ClassUser> classUsers);

    //判断用户是否在班级中
    boolean isUserInClass(Integer classId, Integer userId);

    //查询用户加入的班级
    List<Classroom> getUserClass(Integer userId);
}
